import {
  ref
} from 'vue'
export default function () {

  const count = ref(0);
  const increment = () => {

    count.value++;
  }
  const decrement = () => {

    count.value--;
  }
  // 把方法和数据返回出去
  return {

    count,
    increment,
    decrement
  }
}
